package com.easy.mapper;

import com.easy.bean.OrderDetail;
import com.easy.bean.Train;
import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TrainMapper {
    int add(@Param("train") Train train) ;
    int del(@Param("id") Integer id) ;
    int edit(@Param("train")  Train train) ;
    Train one(@Param("id") Integer id) ;
    List<Train> all(@Param("train") Train train) ;

    //这两个的@Param("param")参数名是要求必须一样的，否则报错
    int pageCount(@Param("param") Train train) ;
    List<Train> page(@Param("page") Page page, @Param("param") Train train) ;










}
